﻿

using DataBaseFactory;
using StudentManagement.Tools;
using System.Data;

namespace StudentManagement.Repository
{
    /// <summary>
    /// 通用仓储。可以继承这这个类在其中查询任何表。
    /// </summary>
    public class CommonRepositoryBase
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        protected static readonly DBTypeEnum dbType = DBTypeEnum.MSSQL;


        /// <summary>
        /// 数据库连接对象
        /// </summary>
        protected readonly IDbConnection Connection = ConnectionFactory.GetConnection(dbType, new ConfigurationJson()["ConnectionString"]);
    }
}
